package com.numbfish.filter;

import java.util.logging.Filter;
import java.util.logging.LogRecord;

public class MyFilter implements Filter {
    private static String SKIP_MESSAGE="暴力";
    @Override
    public boolean isLoggable(LogRecord record) {
        String message = record.getMessage();
        // 不包含暴力两个字内容的放行
        return !message.contains(SKIP_MESSAGE);
    }
}
